    $(function () {
        $sw.init($menus.plugins[0].rows[0].ui, "#content");
        $icontrol.menu('#mainmenu', $menus.mainMenu);
        $icontrol.sitemap('#sitemap');
        $('#content').after($.button('nextLearn', { text: 'Goto Next Demo' }).addClass('bstyle_1').click(function () {
            nextLearning();
        }));

        $icontrol.accordion('#leftmenu', $menus.learning);
        initLogin();
    });
    function nextLearning() {
        var curItem = $('#leftmenu li.selected');
        if (curItem.length) {
            var nextItem = curItem.next();
            if (nextItem.length == 0)
                nextItem = curItem.parents('dd').next().next().show().find('li:eq(0)');
            if (nextItem.length > 0)
                nextItem.children('a').click();
            else
                $icontrol.alert('The Demo is end.');
        }
        else {
            curItem = $('#leftmenu li:eq(0)');
            curItem.parents('dd').show();
            curItem.children('a').click();
        }
    }